<!DOCTYPE HTML>
<html>
<head>

<style type="text/css">
.bloco_1{ width: 300px; text-align:justify}
.bloco_1 h1{ text-align:center}
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>
<?php
include('../mpdf/mpdf.php');
require_once ("../funcoes/restricaoAcesso.php");

ini_set('memory_limit', '256M');

if (isset($_SESSION['htmlPDF'])) 
{
	$margin_left = 6;
	$margin_right = 6;
	$margin_top = 32;
	$margin_bottom = 4;
	$margin_header = 2;
	$margin_footer = 4;
	
	$html = urldecode($_SESSION['htmlPDF']);
	
	$mpdf = new mPDF ('','','','',$margin_left,$margin_right,$margin_top,$margin_bottom,$margin_header,$margin_footer,'');
	$mpdf->allow_charset_conversion = true;
	$mpdf->ignore_invalid_utf8 = true;
	//$mpdf->SetHeader('Metodologia de Mapeamento de Risco de Corrupção');
	//$mpdf->setHTMLHeader('<div style="text-align: right; border-bottom: 1px solid #000000; font-weight: bold; font-size: 10pt;">My document</div>','O');

	$mpdf->setHTMLHeader('<div style="text-align: left; margin-left:15px"><img src="../img/smrc_relatorio.png" width="124" height="100"></div> <div style="text-align: right; border-bottom: 1px solid #000000; font-weight: bold; font-size: 10pt;">Mapeamento de Riscos de Corrupção </div>');
	
	$mpdf->WriteHTML($html);
	$mpdf->SetFooter('{DATE j/m/Y H:i}|Página {PAGENO} de {nb}|http://www.controladoria.go.gov.br/mrc/');
	
	$mpdf->Output();
}
?>
</body>
</html>